#ifndef __FLASHMEM_H__
#define __FLASHMEM_H__

#include "fw/vbb_Queue.h"
#include "fw/vbb_USART.h"
#include "fw/vbb_Flash.h"

typedef struct
{    
    VBB_Flash flash;         
    unsigned int head;
    unsigned int tail;      
    unsigned int sendhead;
    char tmpmsg[MESSAGE_SIZE];    
} VBB_FlashMem;

void vbb_FLASHMEM_Init(void);
void vbb_FLASHMEM_PushMessageF(const char * Format, ...);
void vbb_FLASHMEM_PushMessage(const char * Message);
char * vbb_FLASHMEM_GetMessage(unsigned int Index);
void vbb_FLASHMEM_Clear(void);

#endif

